<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link href="./css/adduser.css" rel="stylesheet" type="text/css" media="all"/>
    <style>
        .form-container {
            width: 400px;
            margin: 50px auto;
            padding: 20px;
            border: 2px solid #3498db;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
            background-color: #f9f9f9;
        }

        .form-container input[type="text"],
        .form-container input[type="submit"] {
            width: calc(100% - 22px);
            padding: 10px;
            margin-bottom: 10px;
            border: 1px solid #ccc;
            border-radius: 4px;
            box-sizing: border-box; /* Makes sure padding and border are included in the total width and height */
        }

        .form-container input[type="submit"] {
            background-color: #3498db;
            color: white;
            border: none;
            cursor: pointer;
            transition: background-color 0.3s;
        }

        .form-container input[type="submit"]:hover {
            background-color: #2980b9;
        }

        .form-container label {
            display: block;
            margin-bottom: 5px;
        }
    </style>
</head>

<body>
<div class="form-container">
    <form action="${pageContext.request.contextPath}/UpdateServlet" method="post">
        <label for="Sno">输入Sno：</label>
        <input type="text" id="Sno" name="Sno" value="${user.sno}"><br>
        <label for="Sname">输入Sname：</label>
        <input type="text" id="Sname" name="Sname" value="${user.sname}"><br>
        <label for="Ssex">输入Ssex：</label>
        <input type="text" id="Ssex" name="Ssex" value="${user.ssex}"><br>
        <label for="Sage">输入Sage：</label>
        <input type="text" id="Sage" name="Sage" value="${user.sage}"><br>
        <label for="Sdept">输入Sdept：</label>
        <input type="text" id="Sdept" name="Sdept" value="${user.sdept}"><br>
        <input type="submit" value="提交">
    </form>
</div>
</body>
</html>